/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Persistencia;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Manu
 */
public class ConexionBD {

    /**
     * @param args the command line arguments
     */
     public Connection getConnection() throws SQLException, ClassNotFoundException{
       
           Class.forName("org.postgresql.Driver");
           Connection conexion = DriverManager.getConnection("jdbc:postgresql://localhost:5432/cajupay", "postgres", "tecnopay");
           return conexion;  
    }
}
